import React, { Component } from 'react';
import {
    DrawerNavigator,
} from 'react-navigation';
import FirstPage from "../testComponent/FirstPage";
import SecondPage from "../testComponent/SecondPage";
const MyDrawNavigatorComponent = DrawerNavigator({
    first: { screen: FirstPage },
    second: { screen: SecondPage },
}, {
    drawerWidth: 200, // 抽屉宽
    drawerPosition: 'left', // 抽屉在左边还是右边
    // contentComponent: CustomDrawerContentComponent,  // 自定义抽屉组件
    contentOptions: {
        initialRouteName: first, // 默认页面组件
        activeTintColor: 'white',  // 选中文字颜色
        activeBackgroundColor: '#ff8500', // 选中背景颜色
        inactiveTintColor: '#666',  // 未选中文字颜色
        inactiveBackgroundColor: '#fff', // 未选中背景颜色
        style: {  // 样式

        }
    }
});


export default MyDrawNavigatorComponent;